# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtkmm
pkgver=2.24.5
pkgrel=2
pkgdesc="C++ wrappers for GTK+"
url="https://www.gtkmm.org/en/"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="atkmm-dev glibmm-dev pangomm-dev"
makedepends="$depends_dev intltool gtk+2.0-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/gtkmm/${pkgver%.*}/gtkmm-$pkgver.tar.xz"

build() {
	CXXFLAGS="$CXXFLAGS -std=c++11" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make install DESTDIR="$pkgdir"
}
sha512sums="c50e52830977c37181439f4b82a30ac8bead0cf9022d2bec8225f8dc33e08414f863bf67056e1938fae8f888c09a5a6d757acc011fa9331a78caa6bb626dd51e  gtkmm-2.24.5.tar.xz"
